package com.mini.client;

import com.mini.config.DebugFeignConfig;
import com.mini.vo.BusinessResult;
import com.mini.vo.WechatUserInfoVO;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author shixiaopeng  on 2020/12/21
 */
@FeignClient(name = "wehub-admin-server", configuration = DebugFeignConfig.class)
public interface WehubAdminClient {

    @GetMapping(value = "/manager/infoUser")
    @ApiOperation(value = "获取用户信息，是否是好友")
    BusinessResult<WechatUserInfoVO> infoUser(@ApiParam(value = "sig", required = true) @RequestHeader("sig") String sig,
                                              @ApiParam(value = "老师微信id") @RequestParam(value = "teacherWxId",required = false) String teacherWxId,
                                              @ApiParam(value = "学员微信id") @RequestParam(value = "studentWxId",required = false) String studentWxId);




    @GetMapping(value = "/miniWehub/disableWechat")
    BusinessResult disableWechat(@RequestHeader("sig") String sig,
                                 @RequestParam("userId") Long userId,
                                 @RequestParam("loginWxId") String loginWxId,
                                 @RequestParam("wechatNo") String wechatNo);


}
